extends "../biaoqiang-3/biaoqiang-3.gd"
var baseId = ""
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒对护甲最高的3名敌人发起标枪突袭", "天女散花", "sk_javelin2", 15)
func _castCdSkill(id):
	._castCdSkill(id)
	if id=="sk_javelin2":
		sk_javelin2()

func sk_javelin2():
	var chas = getAllChas(1)
	chas.sort_custom(sys, "sortByDefDesc")
	for i in range(p4):
		if i >= chas.size():break
		sk_javelin1(chas[i])

var upText1 = "天女散花额外对3名敌人造成伤害"
var upText2 = "标枪突袭额外对目标周围(十字)的敌人造成伤害"
var p4 = 3
func upgrade():
	.upgrade()
	if upgraded == 1:
		p4 = 6